package com.ruoyi.passenger.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 user_query_history
 * 
 * @author ruoyi
 * @date 2024-07-03
 */
public class UserQueryHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 查询内容 */
    @Excel(name = "查询内容")
    private String queryName;

    /** 查询用户Id */
    @Excel(name = "查询用户Id")
    private Long userId;

    /** 查询时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查询时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date queryTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQueryName(String queryName) 
    {
        this.queryName = queryName;
    }

    public String getQueryName() 
    {
        return queryName;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setQueryTime(Date queryTime) 
    {
        this.queryTime = queryTime;
    }

    public Date getQueryTime() 
    {
        return queryTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("queryName", getQueryName())
            .append("userId", getUserId())
            .append("queryTime", getQueryTime())
            .toString();
    }
}
